home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / docshell / nsIWebNavigationInfo.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  5KB  |  142 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIWebNavigationInfo.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIWebNavigationInfo_h__
  6. #define __gen_nsIWebNavigationInfo_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIWebNavigation; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIWebNavigationInfo */
  21. #define NS_IWEBNAVIGATIONINFO_IID_STR "62a93afb-93a1-465c-84c8-0432264229de"
  22.  
  23. #define NS_IWEBNAVIGATIONINFO_IID \
  24.   {0x62a93afb, 0x93a1, 0x465c, \
  25.     { 0x84, 0xc8, 0x04, 0x32, 0x26, 0x42, 0x29, 0xde }}
  26.  
  27. /**
  28.  * The nsIWebNavigationInfo interface exposes a way to get information
  29.  * on the capabilities of Gecko webnavigation objects.
  30.  *
  31.  * @status UNDER_REVIEW
  32.  */
  33. class NS_NO_VTABLE nsIWebNavigationInfo : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IWEBNAVIGATIONINFO_IID)
  37.  
  38.   /**
  39.    * Returned by isTypeSupported to indicate lack of support for a type.
  40.    * @note this is guaranteed not to change, so that boolean tests can be done
  41.    * on the return value if isTypeSupported to detect whether a type is
  42.    * supported at all.
  43.    */
  44.   enum { UNSUPPORTED = 0U };
  45.  
  46.   /**
  47.    * Returned by isTypeSupported to indicate that a type is supported as an
  48.    * image.
  49.    */
  50.   enum { IMAGE = 1U };
  51.  
  52.   /**
  53.    * Returned by isTypeSupported to indicate that a type is supported via an
  54.    * NPAPI ("Netscape 4 API") plug-in.  This is not the value returned for
  55.    * "XPCOM plug-ins".
  56.    */
  57.   enum { PLUGIN = 2U };
  58.  
  59.   /**
  60.    * @note Other return types may be added here in the future as they become
  61.    * relevant.
  62.    */
  63. /**
  64.    * Returned by isTypeSupported to indicate that a type is supported via some
  65.    * other means.
  66.    */
  67.   enum { OTHER = 32768U };
  68.  
  69.   /**
  70.    * Query whether aType is supported.
  71.    * @param aType the MIME type in question.
  72.    * @param aWebNav the nsIWebNavigation object for which the request
  73.    *        is being made.  This is allowed to be null.  If it is non-null,
  74.    *        the return value of this method may depend on the exact state of
  75.    *        aWebNav and the values set through nsIWebBrowserSetup; otherwise
  76.    *        the method will assume that the caller is interested in information
  77.    *        about nsIWebNavigation objects in their default state.
  78.    * @return an enum value indicating whether and how aType is supported.
  79.    * @note This method may rescan plugins to ensure that they're properly
  80.    *       registered for the types they support.
  81.    */
  82.   /* unsigned long isTypeSupported (in ACString aType, in nsIWebNavigation aWebNav); */
  83.   NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, PRUint32 *_retval) = 0;
  84.  
  85. };
  86.  
  87. /* Use this macro when declaring classes that implement this interface. */
  88. #define NS_DECL_NSIWEBNAVIGATIONINFO \
  89.   NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, PRUint32 *_retval); 
  90.  
  91. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  92. #define NS_FORWARD_NSIWEBNAVIGATIONINFO(_to) \
  93.   NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, PRUint32 *_retval) { return _to IsTypeSupported(aType, aWebNav, _retval); } 
  94.  
  95. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  96. #define NS_FORWARD_SAFE_NSIWEBNAVIGATIONINFO(_to) \
  97.   NS_IMETHOD IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, PRUint32 *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsTypeSupported(aType, aWebNav, _retval); } 
  98.  
  99. #if 0
  100. /* Use the code below as a template for the implementation class for this interface. */
  101.  
  102. /* Header file */
  103. class nsWebNavigationInfo : public nsIWebNavigationInfo
  104. {
  105. public:
  106.   NS_DECL_ISUPPORTS
  107.   NS_DECL_NSIWEBNAVIGATIONINFO
  108.  
  109.   nsWebNavigationInfo();
  110.  
  111. private:
  112.   ~nsWebNavigationInfo();
  113.  
  114. protected:
  115.   /* additional members */
  116. };
  117.  
  118. /* Implementation file */
  119. NS_IMPL_ISUPPORTS1(nsWebNavigationInfo, nsIWebNavigationInfo)
  120.  
  121. nsWebNavigationInfo::nsWebNavigationInfo()
  122. {
  123.   /* member initializers and constructor code */
  124. }
  125.  
  126. nsWebNavigationInfo::~nsWebNavigationInfo()
  127. {
  128.   /* destructor code */
  129. }
  130.  
  131. /* unsigned long isTypeSupported (in ACString aType, in nsIWebNavigation aWebNav); */
  132. NS_IMETHODIMP nsWebNavigationInfo::IsTypeSupported(const nsACString & aType, nsIWebNavigation *aWebNav, PRUint32 *_retval)
  133. {
  134.     return NS_ERROR_NOT_IMPLEMENTED;
  135. }
  136.  
  137. /* End of implementation class template. */
  138. #endif
  139.  
  140.  
  141. #endif /* __gen_nsIWebNavigationInfo_h__ */
  142.